home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / DA / P / Pica Calculator 2 / PC2 Folder / PC2 Sample Pgms / PC2 Sample Pgms.rsrc / pPGM_8563_Ghost Ship < prev    next >
Encoding:
Text File  |  1993-07-16  |  499 b   |  93 lines

  1. »NewShip
  2. #0
  3. ?Ship's X position?
  4. GEndPgm
  5. s0
  6. #0
  7. ?Ship's Y position?
  8. s1
  9. r0
  10. /
  11. r1
  12. =
  13. o
  14. r0
  15. x
  16. +
  17. r1
  18. x
  19. =
  20. s0
  21. s1
  22. #7
  23. s9
  24. #1
  25. ~
  26. »MainLoop
  27. ?Angle (0->90°)?
  28. s2
  29. ?Distance (10->100mi)?
  30. s3
  31. #1
  32. ∑4
  33. r3
  34. -
  35. r1
  36. =
  37. |
  38. *
  39. r0
  40. *
  41. r2
  42. *
  43. #2
  44. ±
  45. +
  46. r0
  47. x
  48. +
  49. r2
  50. x
  51. =
  52. s5
  53. GSkipdouble
  54. +
  55. +
  56. »Skipdouble
  57. #7
  58. r5
  59. <
  60. GSkipposition
  61. º9
  62. GDisplayShot
  63. r5
  64. @Missed by:
  65. r9
  66. @You Lose! Shots left:
  67. GDone
  68. »DisplayShot
  69. r5
  70. @Missed by:
  71. r9
  72. @Shots left:
  73. GMainLoop
  74. »Skipposition
  75. #1
  76. –9
  77. @A Hit!     ***YOU WIN***
  78. r9
  79. @Shots remaining:
  80. »Done
  81. GNewShip
  82. »EndPgm
  83.